package com.sxj.corejava.code08_常用类.枚举;

/**
 * @author 石小俊
 * @date 2025年02月18日
 */
public class Test {

    public static void main(String[] args) {
//        Sport sport = new Sport("滑雪","冬天");
//        Sport sport2 = new Sport("打篮球",SeasonConstant.SPRING);
//        Sport sport3 = new Sport("打篮球","aaa");
//        Season season = new Season("冬天",9,12);
        // 需要限制指定类不能被外部访问,所有对象必须是内部创建的
//        Sport sport = new Sport("滑雪",season);

        Sport sport = new Sport("滑雪", Season.WINTER);
//        Sport sport2 = new Sport("滑雪","aaa");
    }

}
